.checkbox {
  appearance: none;
  background: var(--color-gray-200);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  height: 24px;
  margin: 0;
  min-width: 44px;
  outline: none;
  padding: 0;
  position: relative;
  outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
  width: 44px;

  &:after {
    background: var(--color-background);
    border-radius: 50%;
    content: '';
    display: block;
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transform: translateX(0);
    transition: transform 0.2s, opacity 0.2s;
    width: 18px;
  }

  &:checked {
    background: var(--color-primary);
  }

  &:checked:after {
    transform: translateX(20px);
  }
}
